package com.xingzhi.shortvideosharingplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xingzhi.shortvideosharingplatform.model.VideoFavorite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VideoFavoriteMapper extends BaseMapper<VideoFavorite> {
    
    /**
     * 批量添加视频收藏记录
     * @param userId 用户ID
     * @param videoId 视频ID
     * @param folderIds 收藏夹ID列表
     * @return 影响的行数
     */
    int batchInsertVideoFavorites(@Param("userId") Long userId, 
                                 @Param("videoId") Long videoId, 
                                 @Param("folderIds") List<Long> folderIds);
} 